﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Adams.Public.Web.Business.Web.Businesses
{
    public class Business
    {
        public static Adams.Public.DataTransfer.Web.Businesses.Business.PageLoad PageLoad(int id)
        {
            var input = new Adams.Public.DataTransfer.Businesses.BusinessInput()
            {
                BusinessID = id
            };

            var model = new Adams.Public.DataTransfer.Web.Businesses.Business.PageLoad();
            model.Business = Api.GetData<Adams.Shared.Entities.Businesses.Business>("Businesses/Business", input);
            return model;
        }
    }
}
